How to invoke handler without "OnClick" (in logic)