move visibility and touch dispatch logic to container view

Signed-off-by: wenpin.cui <wenpincui224@gmail.com>