added sidebar nav logic