working ajax tables with correct promises
patient profile page in progress