function to edit service row added