get data from server using ajax call
small interface improvement