tweaked maskOverlay to display in browser