mouse code fixes and integration of new ui elements

Fixed the mouse code and added some new ui elements, the joeltempignore
file includes a couple changes that I want to make to the way pages are
handled when I get around to it.