Implemented the layout