sidebar functions working