add alertinput ,but has bugs