isAdmin function kinda works on device detail; will need for showing add button