updated sharedpreferences to properly record values, updating setting and getting
handle system back in settings activity