Implemented menu button code to centre the buttons