Created savePage function for MLB