selecting rows by clicking first td