adding template to application