reafactored the templating for the /learn page