Added GL handling code - instantiated GLCanvas etc.