add ajax functionality
add some basic functionality