fixes bug where certain buttons in the topbar wouldnt work on smaller screens