layout class