Added BaseViewController, for holding common logic for all main view controllers.