implemented submenus
cleaned up table template