Finalized and checked layouts, cleaned up resources.