created app controller, and layout controller