resolved ajax problem