adds deleteTask function, fixes points-of-no-return in router(tasks)