Refatoração do  prompt/select