added the view templates
removed public/index page
added authentication