adds functionality to delete complete the tasks