Adds the code to remove a page from users list when they view it.