Implemented column sorting, fixed messages for pagination