Add specs/implementation for the update action