add popup dialog when button pressed