updated sidebar to toggle caret direction between down and right