SidebarTemplate calls method SidebarCommand.onClick when user clicks on
the SidebarCommand