added front end to templates
moved all frontend to templates/