add style, test connection and dialog for file upload