Initiated a new function to gather data about the item that should be edited.