Added UI.registry. Imports based on roles working partially. Breaks when tried in PhyExam model. Needs fix. app_template created for easy boilerplate app creation