Made TogglePanel more general with Container instead of JPanel, added state getter/setters