fix ui when user have both attending and teaching course