Made changes to make the app work without a frame and toolbar.