add parseURL function to use the active tab feature for messages nav bar