add fancy debug buttons plus a number of UI bugfixes