Adding method for check and delete row