fix bugs in static methods: Dialog.show/hide/close

fix bugs in static methods: Dialog.show/hide/close