added after_save hook to delete all questions with the currently saved template