fixed name regex rules, added add event funcnlity