Ajax functionality is added.