exchanged the alertbox with a aui inlinedialog. Added the viewers rights check to the export functionality