prevent click when editing