Delete function works on the local array of tasks, glyphicon hover functions