fix bug with modal recursion. refactor modal plugin to offer default mode and to accept cutom button trigger selectors. init modal from within graph draw module. style modal for desktop