Adds sidebar functionality