GUI switching codes result quick fix