Removed unused window, implemented a skeleton for menu element and redefined application as an agent