exibir registros com logica na view