added pagination, fixed html escape problem