finalizing overall layout