set up HaBtM relationship, added resource to routes