adding .order_by_rank to models
simplyifying if statement on index
adding self.new_[type] to all models and updating controllers