Creating an application from a template