add structure for handling up/down arrows for navigation