Separated function for adding a new series to its own page. Added tests.