added param for container div & logic to do div or overlay