How to create a toggle button without using toolbar?