Adds pages and redirecting