added sharedPreferences to save state of capsules List