Implements pagination element