added jquery support
added button events
fixed row addition problem