Separate menu functionality into different file, menu struct and functions