Removed debug, pass initializer list as & and made a method to add widgets to panels