destroy view on finish