changed menu construction to a more dynamic system