Added the ability to have a custom close overlay element