Fix closing of file upload view