Added socket events to server and admin view