added JQuery functionality for active rows