adding edit functionality in angular