CHANGED:applied the removeTask function