change the window size dynamically. It is still  hard-coded in line 462--533

Signed-off-by: Enliang <ezheng@cs.unc.edu>