Change to using SharedPreferences instead of putExtra