put #main into layout
refactor dir structure