reworked MVC to use layout.erb