Finalizing layout