Moving the element gather to a function

- Moved the element gather from screen.php to mutliPageScreen.php as a
function.
- Created a temp array for these elements that is now being passed down
for all pages instead of just 1
- UI is still not working correctly for the accordions, seems to only
work for the first page and not the rest.