fix switch to gui