Defined widgets, added window and layout