some changes in glelementwindow