Moves building the menu to it's own method for ease of reading. Removes
redundant IP fetch code.