implemented checkbox and store selected rows id in session