finished main part of pattern view
finished pattern layout