Example code to custom toggle button on layout