Add logging for gui switching.