add controller for upload document