memory management when tearing down views when changing page