better backend and now reverse animation to close tabs