added export functionality to main and logs activity