updated the restricted view and template