Remove polymorphic association and add attempt pagination and sorting