added an angular contoller to send a message to home view