STATE before event based gui