refatooração do menu principal