Added edit functionality and modified index template to show new and edit links