added show code functionality