changed to make tab buttons work