register sidebars
reindent and bugfix