added code for layout structure