start of sidebar work