Implemented view code functionality