various styling and scripting changes