added layout model; renamed site_controller to pages_controller