update action and ajax