Added option to mark the task completed and uncompleted