Simplify sidebarClick function
Merge branch 'master' into gh-pages