Add event handling for entry form.