refactor vistas portal