added foo controller, template for frontend