finish prelimary layout