ajax fix and form tweaks