Adding functionality to add / edit / delete templates and entities