aaron: changed the name of the function that hides the modal to 'hide'