Added pagination options + selecting rows