regist intent as main