Class abstraction of GUI