Change generating of page to one function without forward.