Minor change to dialogueframe
Removed redundant code from dialogueframe