load layout from JSON