handle the info button and dialog