added boolean to allow users to load the UI with triggering the callback