updated collection edit to have a cancel button. fixes #4042