Some clean up
add page limit config
added log controller and unit test case