Tested patient list and did changes to make it work for offline mode