edit and update record implemented