added functionality of creating a new template in theme editor