Added ajax ablities

now pushes data to server