Add beforeunload AYS for navigating away from page with customize-loader