fix update function name ending page