added controller and view template for chart models