Framework for Main Window