move AJAX call to user info callback so info is available