Add event handler in AR and modified the order of ar methods.