linked and rearranged the layout