View history via dropdown list using ajax