re-initialize profiler when clicking load button

- has the effect of letting a user go back to profiler

@seanbrookes please review

this is not new code...I'm just consolidated it to a function so I could call it on load.

the method checks for if the component is called in profiler context or not.