added loader
Move doctor and patients to templates