Added "complete task" functionality