adds market controller and model with index, new, and edit pages