create layout only once