add Config class
link config to window
fix layout