refactored folder layout and added flat-ui.