update a view sample.
improved add/remove child method.