added on touch listener  and modified grid span size lookup for grid layout managers