Add multiple page functionality on replace task