added pagination support
use html5 tags rather than just divs