allow setting layout parameters from main