implemented the remove method.
udpate a view sample.