added front-end controller