Removing unnecessary render