Fixed bug with edited phrases

Edited phrases and sentences were saving into incorrect position.
Modified the corresponding activities to accept and pass position of the
edited item to save to the proper location in the calling activity.