pagination styling on match grid
refactor javascript into functions
less rows per page