adds better page rendering functions