Adds back in ajax functionality