add warning to editRecord page if you're about to leave a dirty page