sidepane js handling of toggle-button reverted