Adding getDialogs to public object
Adding isDialogOpen variable logic
Starting to test dialogs