added ajax routines