Added duration to view and contstrained user name based on type in view