task page and hook page optimize