update dialogbox use and injection