working gl window, commented out all old code for now