Added maps patient viewing and fixed a few bugs