Add option to extend view from the base view class, also add a close method to the view.