regex fixes and more
ajax implemented