show/hide delete button purely written with angular directive
changed nextId function to encapsulate the currentId
stats...