1. get back template editing
2. trim common spaces for templates from the middle of the file
3. redirect to component's template list if the edited template is removed/renamed