Fixes submit button, closes tab when all are submitted

friscis, swconley