save pref and pegg activity