Added logging for edit
Added logging for search