added tab navigation and changes preferences to an activity