table and buttons reappear after selecting a new dataset