add function of new page and escape