Adds a page in a certain place based on where the add button was clicked.