Table function to move up/down in table rows