Modified so that the profiler opens in a separate window