Complete task on click