finalizing layout