Made change such that closing a tab would bring you to tab selection.