Basic sidebar functionality

Contributions from Nicolas and Noah