added the record variables to Main Activity, removed the CreateIntent
function.