added medical record UI and did some general cleanup