[sw] refactoring: extract sidebar and navbar for main view