changes to ajax call to remove unnecessary array