fix sidebar behaviour for responsive designs

on mobile layouts it will not show the popup and the expanded menu in the sidebar