added sidebar to functions