Added templates and mainpage