Used ajax for changing process id