Added separate main method and multiple windows with window switching
capability