build edit view, almost working