move show and hide form code outside of the view as its not the form views responsibility to control that