adding update method to child elements