added resubmit functionality