added a check to finish button to prevent errors when clicking before resolutions