ajax fixes

various ajax fixes, interface work