moved report display to the end.