Add feature for switching overlay to front and and behind the page.