main menu pulled out to a function, authentication is sorta integrated