convert mapTools to dialog