disable add button when uploading
fix cannot hide the window bug