refactoring draggable and SreenGL