fix bug

The esc button does not close the popup window when the window is empty
#25
create app frame