Changed popular so that it now utilizes scope from issue model.
Also changed the has_many_and_belongs_to relationships to has_many :through.
Had to create new models for that