refactored to allow for 2 views to be associated with a model (page): one to render GET requests and one to handle POST requests