moved logic whether a dialog is shown or not to a template method in
order to allow specific logic for the commercial product dialog