Optimised memory usage, assign sharedView to nil on dismiss event.