move buttons code outside of screen media query