implemented ajax interface