file input history with link tested, clean code