init work on ajax