Added templates and added create group functionalty