added onRelease callback to custom view