pass locals through window.view closes #79