Profiles tab is not deselected

When clicking on Profiles tab and then clicking on a different tab, Profiles tab is still selected.
The fix is to resetPage function to deselect the right tab name.