connections now closing throughout and then forwarding to the right page