Refactored Ajax to reuse
Links working, but persistence not