fixing autoload err for main menu
refactoring variable name
absolving of whitespace