Modified system, now it exchanges messages with the collectors to keep them notifying their status so whenever they stop answering the system broadcast the new status of the collector to the browser users.
Modified project to receive tag ID in the correct way, the activities view is working correctly now.