added binding events
fixed id parsing