Adds BaseView to reduce boilerplate codes