add pagination to the notification tables, fixes a doc type and ensure that a device is passed with notifications