refactored debug toolbar assets

also fixed problems with display on small screens.

fixes #1747