Add deleting menu and adding template footer