number of rows changes by arrow keys