added arrow key navigation