refixed inifinitag parts to rebuild the html nicer & cleaner