refactorised zoomUI to class