GLView Hook

place this code in the macro