Visible can now be used on constructor
function registerDialogs, accepting an array of dialogs