added pagination
added controller