added ajax php code and testing it