implemented ajax, not fully working