added ajax handling for estimate demo