fix upload button where dynamically added content did not fill the input field