update classes and styles of sidebar