add auto-update for types, move error handling in UI thread, #3.
Merge pull request #9 from mrstrlc-yipeng/ticket-form

add auto-update for types, move error handling in UI thread, #3.