Keep track of active tab for refreshing page