menu function implement

Signed-off-by: rayrayy <ray61503@hotmail.com>