If this ajax request takes a long time the UI will just hang open with no feedback that it's working on it. Maybe add a timeout and display a message if it has problems?