work towards back end ajax call