report generation integrated with ui