Delay rendering of dialog content until dialog is shown, also add optional onShow callback to be passed in as prop