fixed pattern and index page layouts
updated url scheme for patterns