finally got new and edit forms working