fix handling of afterShowForm for selectbox, autocomplete