add ajax POST and other stuff