[major] use bootstrap as pagelet in stead of large function