RC: moved sidebar into a different file