Updated sidebarSync on/emit to accept multiple arguments