Glview refactor