Show sidebar only when it required