Cleanup of layout.