Additional closing modal methods

Adds the option to close the modal using the browser back button and by clicking off the modal itself.