add ability to create a setup function that is triggered once when the window is loaded