completed  main interface and menu
x