Q1. a!dashboardLayout() is deprecated what layout should I use in place of it..
Q2. what was the role of a!dashboardLayout()
Discussion posts and replies are publicly visible
I ususally just use a!sectionLayout(). In the old days, you couldn't nest one section within another, so you were forced to use something as the parent container for a section - but now you can nest them to basically any (reasonable) depth. If you don't need a label or any of the other section-specific features, you just don't add them. This has the slight benefit over just declaring an array of components, as in slight extra control (direct control of visibility, other properties, etc).
Same here. I tend to use SectionLayouts everywhere.