Added method to inform the delegate a view is about to be shown