implemented "edit record"
using autogenerated :key as record id
refactoring
implemented 'add record'