updated view docs code