removed fragment view, added data class to store saved pref