My code is like below. and I put it in content edior webpart. It works only when I refresh the new item page. I hope the webpart have started to work when I click the new it