Adding redirect and new page handler