refactored  amount of files and code

reduced the the lines of code and files imported into the html files