Copied initial functions in the menu controller