add option in UCP to ask confirmation before leaving page