moved edit spot logic in form rather than view