Want the popup window to replace contents not switch focus if already open. This is needed to avoid tool session issues. To be revisited in the future by always popping open a new window for each different instance (preview, each activity).
added few properties for flow button and submenuwrote a method to show and hide submenuwote a method to get Controller andmade changes in setSyle, setupLabels and createToolbar