Fixes #17: Delete modal shows up when clicking the trash
Remove deleted template from the list