updated eventRegister, moved startup code to .Web namespace