Restructured to handle FORM ACTION and Send Events first, then set timeout