added ajax to add client