udpate to when check for sidebar