convert legacy ajax code
enabled pulling
enabled ajax submit