preventDefault on cancel, edit click