added callback for ajax request, need to test on phones