added acts_as and set up relations