added view button to output page