adds templating and creates a random quote using middleware