Creating update action