Refacto page loading