toggle state when loaded tab is closed
move tab to index after current tab
activate tab after moving
change browserAction title based on state
removing unnecessary permissions