Minor fixes

Tried to introduce previousPreviousTab on tab creation and removal