Refactor update container action into update container trait
Use update container trait