Add edit mode for deletion and counter decrement