Added conditional sidebar