Moved sidebar code to index.html