auto-relayout pattern editor with overlay