added polymorphic association for votes, posts and comments