Fix bug in page duplication
Wire page duplication to front-end