improved the layout positioning