user view and added socket.io in view pages