Repaint on directory switch