check if last row is empty
next prev functionality