add menu support on non-desktop platform.