fixed method addAction in Ajax
renamed method registerHookCallbakcs to registerActions