Add onDispose to View