only show sidebar if it is active