added some ajax handling
uncomment qb