Dynamically get major options from sharedprefernce