bunch of dom rework and style updates to fix bugs and layout issues.