Add closeOverlay function

A little abstraction