Removes okay button, hides modal upon generation