added a tab structure and refactored the Views into Fragments