setup direx and popwin