added column sorting and pagination