only able to delete devices
make paging work on messages page and only query devices for principals