renaming gui_reference to graphics_state