Don't make buttonbar in toc every 'selectedContentChanged' event. Do it just one time, when constructing