add ajax call after pass input