fixed wrong shadow on gui bar open button when open

When the gui bar opens, the shadow shown on the little '^^' button was
incorrect. This is now fixed.
fixed the cursor in chrome

The cursor no longer crashes in Chrome, plus a lot of other code layout
changes.