add function in creating the page for select items and group of items in select list