Fixed coding style and remove old ding library menu support