Added support of toggle buttons.