added new template api for managing layouts