finalized data retrieval for edit page