cleanup on the modal

Would have liked to do it on one line, but couldn't figure out how to do this with hash key rather than a regular variable.