Description
Namenode UI allows previewing both file's head and tail.
However, it is malfunctioning if I preview another file after I close the previous modal.
This bug is caused by duplicated events.
Events are only added to "file-info-preview-head" and "file-info-preview-tail".
Previous added events are not removed later.