Disabling deleted templates and checking for template changes on change as well as on keyup