tweaked the css, simplified some of the code