collapse add trans form when navigating away