improved ajax on compare page