Revert "ajax fixes"

This reverts commit d3f8395d04d710abfb8df1bec173ce29be0dc3eb.