added the sharedpreference