implpemented onCreateView for ItemLocation and ActionLocation.