simplified the file selector

simplified how file selector works. removed unnecesary variables

not tested in other screen which is no HD (maybe there are bugs)