Added back buttons functionality as a block to base.html.