front-end: added controller template for charts and improvement other controllers also