add view code