added default layout
added layouts. fixed admin pattern page