added jquery ui and functionality for socket