add sidebar with selection change