changes for added current_user conditions when download csv