Cleans up layout.