gui: Add class for run state

Signed-off-by: Michael Buesch <m@bues.ch>