modularized the default layouting, added dashboard template