more stuff is working... added onload and onunload