add options for container selector and range onclick behaviour