Changed the shared preferences used in MainActivity to use the one from
preferences to make it uniform