warn before leaving page with unsaved data

fixes #14