Simplified the sidebar code + added URL routing