How is nervous system related to endocrine system ?