this manual event binding should be replaced by declarative event bindings.