change view code