Allow sidebar to be opened

...by fixing conflicting styles and event handlers.