added role checking security for dfo and exporting csv