engine updates and moved inline theme setup code to actions