refactored name view