You need to subscribe a single time when ui is built, you should not subscribe again every time the UI is opened…
And, to unsubscribe the function if needed for any other reason, you must call .Cancel()
on the subscription result, such as:
MySubscription := MyButton.OnClick().Subscribe(ButtonClickHander)
# later on the code:
MySubscription.Cancel()