adding reference code for native menu