when reloading the app, make sure the existing selected tab works