converted mediabuttons() to new API and screen orientation