using fmli to create menu's

I am currently having a problem creating a dynamic Menu that reads in from a file and appends this Menu list with an exit menu item.

the syntax I am using to create the dynamic Menu is

menu="$ARG1 Host names"

`cat Hosts.data | regex '^(''.*)$0$' '
name="$m0"
action=open Menu.Login.mnu $ARG1 $m0

1) This created a menu that had 3 columns, I only wanted 1 column
2) I tried to add an Exit Menu item to the list but it creates one after each Menu list. e.g.

host1
exit
host2
exit
host3
exit

can you show us Hosts.data file ?
can you show us the values in m0 and $ARG1 ?

The Host.data file has something simular to ;

Host01
Host02
Host03
Host04
....
Hostnn

the $ARG1 will either be "Build", "FTP" or "Release", and is used to be passed through as an argument for Menu.Login.mnu

$m0 will just be the values of Host.data file