Tab button selection code added