split bch-ui5 hash save into its own hook