added template files, renamed main controller