add hook when destroying screens