add function in menu