updated menu class to always return a new instance of the class