add some ajax functionality