added on-close-callback argument to show method