Working export dialog implemented