change controller view code