create submit directive and fix bug with view for patient and nurse