refctoring draw menu method.