called broadcast function inside tuggle function in service instead of calling it in controllers