added scripting and ajax