added if statement to control rendering of sidebar for graphics on right rail