added some more callbacks to mouse.  fixed a bug in setting attributes.  changed some GL references to this references.