use event dispatcher when setting form vars