added dynamic page selection boxes