added bind and unbind handlers