added conditional sidebar