refactored, moved html table creation to its own file
I have no idea what I am doing