Added new constructor to TogglePanel