add gitignore
refactor loadLayout