close main ui after uploading