add settings view controller with logout function