[sidebar] updates vars for sidebar, updates sidebar template