Records data to csv file, activity selection now works