Fix sidebarAction() to return a response object