Some bug fixes and adding DialogPanel to all PopinPanels