added ability to change tab by tapping on tab button.