adding helper class methods to create the view