commit remaining code
fixing ajax call