uilayer touch management refacter