abstract out code to identify view tag attributes