add ajax and js adjust user input