Made edit and delete functionable.