Fix to now flush status messages for AJAX requests