added bit of ajax but not finished