make changes to BoardController with pagination