Reinitialize the file frame on each click, this fixes issues with cloned elements