improved code for menu buttons

used general integers for all coordinates, sizes and so on