fixing some issues with toggling on and off of canvas panels when using multiple types of dialogs