Made optimization of modal dialog height and optional parameter to kenyaui.openPanelDialog(..)