Viewer: Added buttons to the viewer title bar. Also rewrote the hover menu logic. It now uses the page x,y coordinates of the mouse.