Added hooks to ajax module