adding collapse / expand event, to be called with on. Add e.stopPropagation(); to stop it from bubbeling up.