Extract navigation and header views from layout