Init method for creating Toggle Buttons on the fly.