add closebutton magnifier dialog