Refactoring to move visit document service to common services
+D3: Adding back JQuery UI