prompts no data in edit view when no mongo data is returned