added unsubscribe of triggers to avoid an issue with route changes in docs