refactor put ViewGroup handler in separate module