added user view and modified index template