very basic refactoring just to adjust the changes i made in the html and stuff