additional work on sockets, quick fix on socket for button page