how does the nerves system and the works together with the integumentary system to help the body to maintain homeostasis.