Added edit buttons to the template