Add a toggle option to the toolbar controller like in most apps.

This toolbar buttons are not only open but should be toggle (open when
closed and close when open). Add functionality and code into demo.js
lighten code