started adding functions to MenuLib.cpp, may need to be moved to a different file