Added Socket and Jquery and Button events