adds ajax to main form