add layout for bottom and top