optimize query
prevent sidenav from overlapping content