some fixes, ajax call changed