Code written to prevent back functionality from families activity.