made edit page work with empty collections