pagination fixed and one show_all function made
search repaired & pagination for violation tab repaired
common function for search