implementing edit functionality..