Made loading menu a reusable function