Rename pages, pass local variables