added settings view and navbar functions