Working mvc for angular editing