everytime I trigger fileDialog, it create an input and never clean them up. 