update record now working
fixed destroy function, but will need to revise it later