move display code to startdde