moved cancelOverlay into app.layout for consistency