ok/cancel behavior on markdown box