Fix bugs in reporting app
Added support for pagination
Add model for report viewer