fix modal display issue on collect page
conform analyze page behavior modal code to collect page changes