add logic:only completed item can be marked as completed, and only can edit uncompleted items