Fix some bug and enhancement

Now, upload a specific file with selection windows work. We can press
escape to quit the area selecting screen windows.
Delete useless code