Applied partial renders to shorten the code.