added front end functionality, jade templating