change code for edit media title before upload