add sidebar fucntion

add function to add class to body if there is a sidebar