added setCurrentTab method to call the session