Ajax loader fixes