implementing toplevel menu