created a view for user