finished debugging user interface and added pagination