ajax form working
code cleanup