Fixed back link in report and close dialog on click x