add null checks and support for window enumerable
add example for changing theme
return to internal