add ajax functionality

word