LayerState: Modified for update of libgui