proper handling of event jquery fields