Better handling of Profiler display and also now works correctly with bootstrap-ajax calls.