add function for page 2; fix the bugs for firefox about tag input