Add sharedpreferences for timestamp