Bugfix
Rename rows to state
Change API passing lambdas for event handling