added shared prefs and init to CalendarActivity