working on logic for saving page settings