bind subjects and classes to checkbox