delete device fragment, add medication fragment