Fixed pagination view to work with bootstrap UI