reassigning functions to Layout classes