new layout for modal dialogs
add animate option and callback events