colored selected filename, focus out for selected filename, adjust input box width of filename, refactoring