add config window logic