Add repaint function to repaint the session table