* Added a dialog when exporting the reports

* Added: a dialog when exporting the reports
* Changed: Cleaned the code, refactored some parts