Add an interface to safely dispose of views