Import optimize, and add Pageid constant class