add view report function