sidebar functions and styling