adding and editing function for hospitals admin