Fixed template moving undo bug; added ability to delete templates with del or backspace keys