fix switch view