Seperated code into proper django template blocks