add ajax functionality

ah okay. good to know