create function for new page