Add preferences menu and activity.