refactored glance code

Fixes bug 1215087

merged the glance class into the control class
delete the glance class