rendering pages sort of works