create application window and restructure packages