Fixed a critical flaw in DOM structure and did some styling