fix css, add debugging code