Extract DialogFrame into a separate class