made menu more generic by removing the dependency on the source for the Menu creation