Created a menu class to handle button clicks.