moved code into a django block and made it appear only on the homepage