create layout class