create layout at runtime