LDEV-1676: Changing submit and forum so that after the marks screen is closed (in monitoring) the main tool monitoring screen is refreshed. Want to share the code used in the Edit Activity refresh, so move it to common.js. Also fixed the code so that if the currentTab has been appended previously then it is replaced - this fixes a problem with the current tab getting stuck if you opened edit activity/mark multiple times but the current tab was changed.