initial layouting and configuration