WIP: fixing dialog not showing up bug