added patient detail view and popups