fix issue with not auto selecting first tab on startup