minor frontend refactor, added pagination and config file.