Dialog box working.. but not simultaneously