add ajax functionality

probably okay to not bother with this