Gid rid of toast message.
Move toggleSock into its own file.
Create index.js and check_for_cancel utility file.