bind app stuff to window load event