add socket controller and its relevant script to index