fixed some logic. still provider id prob. updated views for each type of roles