add ajax functionality

cool