Added search function to Hospital view and various other bugfixes.