implementation of menu